- Create a SimpleText document. Personal Web Server can display SimpleText styles so you can be creative with your SimpleText document.
- While in SimpleText, choose Save from the File menu and do the following:
- Locate the folder that you are publishing. By default, Personal Web Server creates a My Personal Web site folder on your hard disk that can be used to store the files that will be published on your Web site, but you can publish a different folder.
- In the Save This File As text box, type a name for the file, but if you want Personal Web Server to maintain your SimpleText styles, do not add ".html" or ".htm" to the file name. For example, save the file as "mycompany" not "mycompany.htm." If you use a file extension such as .htm or .html, your SimpleText styles will be ignored.
- Click the Save button.
- Open the Microsoft Personal Web Server control panel and click the Links button to add the URL to your home page.
- Visit your Web site and look at the new file.
Related Topics
Adding links to your home page
Adding a link in a SimpleText document
Publishing a new folder
Visiting your Web site
- Create a SimpleText document, including all the text and styles.
- Find the text that you want to turn into a link. Make sure that all the text for the link uses the same style. (For example, if part of it is bold, the whole link must be bold.)
- Immediately before the text, type the URL you want the link to point to.
- Place quotation marks around the URL. Do not leave a space between the closing quotation mark and the first letter of the text. It should look like:
"http://www.microsoft.com/ie"Check out the Microsoft site.
(Make sure you use straight quotation marks, like the ones shown above, not curly quotation marks.)
- Select the URL (including the quotation marks) and the text that you want to link.
- From the Style menu, choose Underline. Now it should look like:
"http://www.microsoft.com/ie"Check out the Microsoft site.
Make sure that the link is underlined and that the underline does not extend to the text surrounding the link.
- Save the file, and drag it to your Web site folder.
If you drop it inside the My Personal Web Site folder, the URL will start just like the URL for your site, but will have the name of the document appended to the end. For example:
http://www.microsoft.com/start.htm
Related Topics
Adding a file or folder
Creating Web pages without using HTML
- Drop the file or folder into the folder you are publishing, or into one of its sub-folders. The Personal Web Server installer creates a folder called My Personal Web Site on the top level of your hard disk. Unless you have changed this folder, drag the file into the My Personal Web Site folder.
Personal Web Server automatically indexes the files and subfolders in folders. If you don't want to list the contents of the a folder, name of one of the files in the folder "default.html" or "index.html" so that when the folder is requested the contents of the default.html or index.html file will be displayed.
Tips
- If you want you file to be automatically linked to your home page, drag the file to the My Shared Documents folder. Otherwise, you will have to link the document to your page using the Links Page in the Personal Web Server control panel.
Note
- Personal Web Server supports a subset of the Active Server Pages functionality available with the Internet Information Server. Personal Web Server handles all files with the ".asp", ".html", and ".htm" extensions as Active Server Pages. In most cases, this will not have an effect on the documents that do not contain Active Server Pages tags. However, you can prevent Personal Web Server from processing an HTML document by using the ".np" ("not processed") file extension instead of .html.
Related Topics
Adding Active Server Pages to Your Web Site
Creating Web pages without using HTML
Preventing visitors from browsing the contents of a folder
Understanding File Types
- Open the My Personal Web Site folder on your computer. Unless you have thrown it away, you should see a My Shared Documents folder.
- Drag the documents that you want visitors to be able to see when they click the Access Shared Documents link on your home page into My Shared Documents folder.
- Create a file called "nobrowse" and add it to the folder. This file does not have to contain any content. If a user requests the URL of the folder and Personal Web Server finds the nobrowse file, the server will display a message stating that browsing is not allowed.
Related Topics
Adding a file or folder
When a visitor to your Web site clicks a link, Personal Web Server sends the file to
the visitor's browser where it is then displayed. However, before the file can
be displayed, PWS must also tell the browser what type of file it is sending. It does this by sending
the document's MIME type (Multipurpose Internet Mail Extension).
How does it know the MIME type? Personal Web Server looks for any of these three pieces of information: the file's extension, document type and Internet Config.
Personal Web Server's Order of Operations
- To ensure that Personal Web Server serves documents
properly, there are a few basic mappings that do not rely on Internet Config.
Table 1 lists the file extensions and MIME types that
Personal Web Server uses regardless of the MIME type specified in Internet
Config.
- If no extension is found, Personal Web Server checks to see if the file is a SimpleText file.
- Personal Web Server reviews the settings in Internet Config, first checking the file extension and then the file type
- Personal Web Server will look for the file extensions (see Table 2) and then file types (see Table 3 ) that it recognizes automatically.
Table 1: Extensions that PWS maps regardless of Internet Config's settings
Extension | MIME Type | Description | Action |
htm or html | text/html | HTML document |
|
fcgi | text/html | Frontier CGI | Not processed for ASP |
jis | text/html | JIS (Japanese) encoded | Not processed for ASP |
np | text/html |
|
|
asp | text/html | Active Server Pages |
|
cgi | text/html | Common Gateway Interface |
|
acgi | text/html | Acynchronous CGI |
|
t | text/html | WebSiphon CGI Template |
|
fm | text/html | File Maker Pro ACGI |
|
map | text/html | Image Map |
|
process | text/html | ASP Form Processing Document |
|
mime | application/octet-stream | Raw Data |
|
raw | application/octet-stream | Raw Data |
|
mac | application/octet-stream | Macintosh File | BinHex encode |
jpg | image/jpeg | JPEG image |
|
Table 2: Extensions that PWS recognizes automatically
File kind |
Extension |
Description
| Action |
CGI | .cgi |
| Runs CGI |
ACGI | .acgi |
| Runs ACGI |
Frontier ACGI | .fcgi |
| Runs Frontier.acgi located in your HTML files folder. |
File Maker Pro ACGI | .fm |
| Runs FM.acgi located in your HTML files folder. |
Image Map | .map |
| Handles Image Map operations. |
Raw Mime | .mime |
|
|
AppleScriptCGI | .script |
| Runs AppleScript. |
Mac File | .mac |
| Binhex encodes file before sending. |
Standard HTML | .htm or .html |
|
|
JPEG Image | .jpg or .jpeg | image/jpeg |
|
GIF Image | .gif | image/gif |
|
Basic Audio | .au | audio/basic |
|
AIFF Audio | .aiff or .aif | audio/x-aiff |
|
Binhex | .hqx | application/mac-binhex40 |
|
QuickTime Movie | .mov | video/quicktime |
|
MPEG Video | .mpeg | video/mpeg |
|
Adobe Acrobat PDF File | .pdf | application/pdf |
|
Plain Text | .text | text/plain |
|
Plain Text | .txt | text/plain |
|
Macromedia Director | .dcr or .dir | application/x-director |
|
Microsoft Word | .doc, .rtf, .dot, wbk | application/msword |
|
Microsoft Excel | .xla, .xls, .xlc | application/x-msexcel |
|
Microsoft PowerPoint | .ppt or .pot | application/x-mspowerpoint |
|
Table 3: File types that PWS recognizes automatically
File Type | MIME type | Description |
'XCEL' | application/x-msexcel | Microsoft Excel file |
'MSWD' | application/msword | Microsoft Word file |
'PPTS' | application/x-mspowerpoint | Microsoft PowerPoint file |
'AIFF' | audio/x-aiff | AIFF Audio File |
'GIFf' | image/gif | GIF Image |
'JPEG' | image/jpeg | JPEG Image |
'MooV' | video/quicktime | QuickTime Movie |
'MPEG' | video/mpeg | MPEG Video |
'PDF ' | application/pdf | Adobe Acrobat File |
Note
- Internet Config is a third party application that you can use to add MIME types. If you would like more information about Internet
Config or would like to download a copy, visit the Internet Config site at ftp://mirrors.aol.com/pub/peterlewis/www/ic/index.html.
This link points to information that is not under the control of Microsoft Corporation. Please read our disclaimer.
Related Topic
Adding files and folders to your Web site